@extends('layouts.master')

@section('title','dashboard')

@section('content')
    欢迎 to your application dashboard!
@endsection

@section('footerScripts')
    @parent
    <script src="dashboard.js"></script>
@stop



@if (count($article->comments)>0)
    @foreach( $article->comments as $comment )
        @include('comments.item',['comment'=>$comment])
    @endforeach
@else
    @include('comments.no-item',['comment'=>$comment])
@endif

@forelse($article->comments as $comment)
    @include('comments.item')
@empty
    @include('comments.no-item', ['comment' => $comment])
@endforelse

@each('comments.item', $article->comments, 'comment', 'comments.no-item')
